package maple.core;

import jade.lang.acl.ACLMessage;
import jade.wrapper.StaleProxyException;

import maple.lang.Language;
import maple.util.Planner;
import maple.util.tasks.MasterTask;

public class Printer extends MapleAgent
{
	protected void actionInform( final ACLMessage message )
	{
		String postcondition = message.getUserDefinedParameter( Planner.Property.POSTCONDITION.toString() );
		String location = message.getUserDefinedParameter( MasterTask.Property.LOCATION.toString() );
		System.out.println( location + Language.DELIMITER + postcondition + ": " + message.getContent() );
	}
}
